const assessmentController = require('../controllers/assessmentController');
const authMiddleware = require('../middlewares/authMiddleware');
const Router = require('koa-router');

// 添加/api前缀
const router = new Router({ prefix: '/api' });

// 获取所有测评（不需要认证）
router.get('/assessments', assessmentController.getAllAssessments);

// 创建新测评（需要认证）
router.post('/assessments', authMiddleware, assessmentController.createAssessment);

module.exports = router;